package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SetmealDishDao extends BaseMapper<SetmealDish> {
    @Insert("insert into setmeal_dish values (#{id},#{setmealId},#{dishId},#{name},#{price},#{copies},#{sort},#{createTime},#{updateTime},#{createUser},#{updateUser},#{isDeleted})")
    public void savesetmealdish(SetmealDish setmealDish);

    @Delete("delete from setmeal_dish where setmeal_id=#{id}")
    public void deletebysetmealid(Long id);
}
